//
//  UIScrollView+KSDHelper.m
//  OrderKsudi
//
//  Created by ksudi on 16/5/16.
//  Copyright © 2016年 oeffect. All rights reserved.
//

#import "UIScrollView+KSDHelper.h"

@implementation UIScrollView (KSDHelper)

- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer{
    //    NSString *str = [NSString stringWithUTF8String:object_getClassName(gestureRecognizer)];
    
    if ([gestureRecognizer isKindOfClass:[UIPanGestureRecognizer class]]) {
        CGPoint translation = [(UIPanGestureRecognizer *)gestureRecognizer translationInView:self];
        return fabs(translation.x) > fabs(translation.y);
    }
    return YES;
}

- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
    
    return [super hitTest:point withEvent:event];
}

@end
